<div class="hp-tab-newprd">
    <ul class="j-sw-nav">
        <li class="newprd-s1 tab-li"><a href="<?php echo base_path();?>competitors/list">查看</a></li>
        <?php if(user_access('add competitors')){?>
        <li class="newprd-s2 tab-li<?php if(arg(1) == 'add'){?> on <?php }?>"><a href="<?php echo base_path();?>competitors/add">添加</a></li>
        <?php } if(user_access('view competitors stats')){?>
        <li class="newprd-s3 tab-li"><a href="<?php echo base_path();?>competitors/stats">统计</a></li>
        <?php }
        if(arg(1) == 'edit' && !empty(arg(2))){?>
            <li class="newprd-s4 tab-li on"><a href="javascript:void(0)">修改</a></li>
        <?php }if(arg(1) == 'clone'){?>
            <li class="newprd-s4 tab-li on"><a href="javascript:void(0)">克隆</a></li>
        <?php }?>
    </ul>
    <div class="table-div" >
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label"><span class="required">*</span>请选地址:</div><?php print render($form['address']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label"><span class="required">*</span>肥料类别:</div><?php print render( $form['fertilizer']); ?></div>
            <div class="small-div"><div class="form-label"><span class="required">*</span>请选品牌:</div><?php print render($form['brand']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label"><span class="required">*</span>请选年份:</div><?php print render( $form['year']); ?></div>
            <div  class="small-div"><div class="form-label"><span class="required">*</span>请选月份:</div><?php print render(  $form['month']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label">S/M:</div><?php print render($form['sm']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label"><span class="required">*</span>N:</div><?php print render($form['n']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label"><span class="required">*</span>P:</div><?php print render( $form['p']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label"><span class="required">*</span>K:</div><?php print render( $form['k']); ?></div>
            <div class="small-div"><div class="form-label">总含量:</div><?php print render($form['npk_total']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label"><span class="required">*</span>出厂价格:</div><?php print render( $form['factory_price']); ?></div>
            <div class="small-div"><div class="form-label"><span class="required">*</span>到站价格:</div><?php print render( $form['arrival_price']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label"><span class="required">*</span>零售价格:</div><?php print render( $form['retail_price']); ?></div>
            <div class="small-div"><div class="form-label">返利:</div><?php print render($form['rebate']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="form-label">销售政策:</div><div style="margin-left: 11.3em; "><?php print render($form['sales_policy']); ?></div>
        </div>
        <div class="add-submit" style="text-align: center"><?php print render($form['submit']); ?></div>
    </div>
</div>
</div>

<?php print drupal_render_children($form); ?>

